package com.eco.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.eco.common.utils.IdUtils;
import com.eco.user.entity.SysUser;
import com.eco.user.mapper.SysUserMapper;
import com.eco.user.service.ISysUserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;


/**
 * 用户信息表(SysUser)表服务实现类
 *
 * @author bcro
 * @since 2023-05-11 17:51:45
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    public static void main(String[] args) {
//        List<SysUser> sysUserList = new ArrayList<>();
//        SysUser sysUser = new SysUser();
//        sysUser.setId(IdUtils.getId());
//        SysUser sysUser1 = new SysUser();
//        sysUser1.setId(IdUtils.getId());
//        sysUserList.add(sysUser);
//        sysUserList.add(sysUser1);
//        StringBuilder event = new StringBuilder();
//        String collect = sysUserList.stream().map(r -> r.getId() == null ? "" : r.getId().toString())
//                .filter(StringUtils::isNotBlank).collect(Collectors.joining(","));
//        event.append(collect);
//        System.out.println(event.toString());
    }


}
